<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport"
    content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  <title>我的订单</title>
  <link rel="stylesheet" type="text/css" href="__CSS__/api.css" />
  <link rel="stylesheet" type="text/css" href="__CSS__/aui.css" />
  <style>
    body {
      background: #F6F6F6;
    }

    .aui-icon-tu {
      height: 2.2rem;
      width: 2.2rem;
      background: url(__IMG__/close.png) no-repeat 0.75rem center;
      background-size: 13px 13px;
    }

    .contain {
      padding: 0.75rem;
    }

    .item {
      padding: 1rem 0.75rem 0;
      margin-bottom: 10px;
      background-color: #fff;
      border-radius: 10px;
      position: relative;
    }

    .top {
      padding-bottom: 15px;
    }

    .school {
      margin-bottom: 8px;
      font-size: 15px;
      font-weight: 500;
      color: #666666;
    }

    .align-end {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .info {
      font-size: 13px;
      color: #666666;
      margin-top: 5px;
    }

    .btn1 {
      width: 75px;
      height: 27px;
      line-height: 26px;
      text-align: center;
      font-size: 12px;
      border-radius: 5px;
      border: 1px solid rgba(238, 116, 43, 0.5);
      color: #EE742B;
      margin-left: 10px;
    }

    .year {
      font-size: 12px;
      color: #666;
    }

    .bottom {
      height: 48px;
    }

    .status {
      position: absolute;
      right: 15px;
      top: 20px;
      font-size: 12px;
      color: #EE3E2B;
    }
  </style>
</head>

<body>
  <div class="contain">
    {volist name='data' id='d'}
    <div class="item">
      <div class="top underLine">
        <div class="status">{$d.send_status == 1 ? '未发货' : '已发货'}</div>
        <div class="school">{$d.school} &nbsp;<span class="year"> {$d.year}年</span></div>
        <div class="info">
          姓名：{$d.name}
        </div>
        <div class="info">
          提交时间：{$d.add_time}
        </div>
      </div>
      <div class="bottom align-end">
        <div class="btn1" onclick="orderInfo({$d.o_id});">查看详情</div>
        {if $d.send_status == 2}
        <div class="btn1" onclick="wuliuList({$d.o_id});">查看物流</div>
        {/if}
      </div>
    </div>
    {/volist}
  </div>
  {include file="public/footer2" /}
</body>

</html>
<script type="text/javascript">
    function orderInfo(oid) {
        location.href = '{:url("home/Index/orderInfo")}?o_id=' + oid;
    }
    function wuliuList(oid) {
        location.href = '{:url("home/Index/wuliuList")}?o_id=' + oid;
    }
</script>